/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import com.j2eefast.produce.pms.entity.PmsParticipantEntity;
import com.j2eefast.produce.pms.entity.PmsTestEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>检验标准</p>
 *
 * @author: summer
 * @date: 2021-06-20 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsTestMapper extends BaseMapper<PmsTestEntity> {

	public boolean deleteByIds(@Param("ids") Long[] ids);

	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsTestEntity> findPage(IPage<?> params,
//                                         @Param("sample_code") String sampleCode,
//                                         @Param("sample_type") String sampleType,
                                        @Param("sql_filter") String sql_filter);


	//获取工程最大编号
	public PmsTestEntity getParticipant();
	//获取参建最大编号
	public PmsTestEntity getParticipantCode();

	//保存三联信息
	boolean save(PmsTestEntity pmsTestEntity);

	/**
	 * 获取机构数据
	 * @param sql_filter
	 * @return
	 */
	List<PmsTestEntity> getDeptList(
//            @Param("parentId") String parentId,
//            @Param("className") String className,
			@Param("sql_filter") String sql_filter);

	/**
	 * 查询公司
	 */
	PmsTestEntity findCompById(@Param("id") Long id);

	/**
	 * 判断是否最低级别
	 * @param pid
	 * @return
	 */
	public Integer checkSmall(@Param("pid")Long pid);



	public  List<PmsTestEntity> listByMap(@Param("id") Long id);

	public  boolean removeByMap(@Param("id") Long id);



}
